import request from '@/utils/request'
import BaseApi from '../BaseApi'

/**
 * 用户模块
 */
const apiRouter = '/FaSysGenApi'
export default class FaSysGen extends BaseApi {
  constructor(gridId) {
    super(apiRouter, gridId)
  }

  /**
   * 生成预览代码
   * @param {*} genId
   * @returns
   */
  genCodePreview(genId) {
    return request({
      url: `${apiRouter}/genCodePreview/${genId}`,
      method: 'get'
    })
  }

  /**
   * 生成代码
   * @param {*} param0
   * @returns
   */
  genCode(data) {
    return request({
      url: `${apiRouter}/genCode`,
      method: 'post',
      data
    })
  }
}
